 Ext.define('HIT.view.DealOrderWin', {
    extend: 'Ext.window.Window',
    alias: 'widget.dealorderwin',
//排序弹出窗口
    height:380,
    width:440,
    modal : true,
    overlapHeader: false,
    preventHeader: true,
    layout: {
        type: 'border'
    },
    title: Share.T('排序'),
        
    initComponent: function() {
        var me = this;
        this.title = Share.T('排序');                            
        
        Ext.applyIf(me, {
             items: [{	
                     xtype:'panel',
                     autoScroll:true,
                     id:'deal-order-panel',
                     region: 'center'
              }
             ], 
             dockedItems: [
                      {
                          xtype: 'toolbar',
                          dock: 'top',
                          items: [
                              {
                                  xtype: 'button',
                                  text: Share.T('增加条件'),
                                  handler: function(){
                                	  var newPanel = Ext.create('widget.dealorderpanel');
                                	  Ext.getCmp('deal-order-panel').add(newPanel);
                                  }
                              },                                        
                              {
                                  xtype: 'button',
                                  text: Share.T('保存'),
                                  id:'deal-order-save'
                              }
                          ]
                      }
                  ]
         });
        me.callParent(arguments);
        
        
    }

});